# coding: utf-8

from wtforms import Form


class BaseForm(Form):
    def __init__(self, *args, **kwargs):
        super(BaseForm, self).__init__(*args, **kwargs)

    def validate(self):
        valid = super(BaseForm, self).validate()
        if not valid:
            raise Exception(self.errors)
